package com.youyicloud.service;

import com.youyicloud.entity.PayInfo;
import com.youyicloud.repository.PayRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PayService {

    @Autowired
    private PayRepository payRepository;

    public PayInfo savePayInfo(PayInfo payInfo){
        return payRepository.save(payInfo);
    }

    public PayInfo findById(Integer payId){
        return payRepository.findOne(payId);
    }
}
